//
//  FMFindMainTableViewCell.m
//  PsychologyFM
//
//  Created by 杜建虎 on 16/1/12.
//  Copyright © 2016年 ZhangLuDu. All rights reserved.
//

#import "FMFindMainTableViewCell.h"

@implementation FMFindMainTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        _dysphoriaButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _dysphoriaButton.frame = CGRectMake(0, 0, kScreenWidth / 3, kScreenWidth / 3);

        [self.contentView addSubview:_dysphoriaButton];
        _dysphoriaLabel = [[UILabel alloc] initWithFrame:CGRectMake(50, 40, kScreenWidth / 3, kScreenWidth / 3)];
        _dysphoriaLabel.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:_dysphoriaLabel];
        
        _sadButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _sadButton.frame = CGRectMake(kScreenWidth / 3, 0, kScreenWidth / 3, kScreenWidth / 3);
        [self.contentView addSubview:_sadButton];
        _sadLabel = [[UILabel alloc] initWithFrame:CGRectMake(kScreenWidth / 3 + 50, 40, kScreenWidth / 3, kScreenWidth / 3)];
        _sadLabel.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:_sadLabel];
        
        _aloneButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _aloneButton.frame = CGRectMake(kScreenWidth / 3 * 2 , 0, kScreenWidth / 3, kScreenWidth / 3);
        [self.contentView addSubview:_aloneButton];
        _aloneLabel = [[UILabel alloc] initWithFrame:CGRectMake(kScreenWidth / 3 * 2 + 50, 40, kScreenWidth / 3, kScreenWidth / 3)];
        _aloneLabel.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:_aloneLabel];
        
        _getUpButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _getUpButton.frame = CGRectMake(0, kScreenWidth / 3, kScreenWidth / 3, kScreenWidth / 3);
        [self.contentView addSubview:_getUpButton];
        _getUpLabel = [[UILabel alloc] initWithFrame:CGRectMake(50, kScreenWidth / 3 + 40, kScreenWidth / 3, kScreenWidth / 3)];
        _getUpLabel.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:_getUpLabel];
        
        _decompressionButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _decompressionButton.frame = CGRectMake(kScreenWidth / 3, kScreenWidth / 3, kScreenWidth / 3, kScreenWidth / 3);
        [self.contentView addSubview:_decompressionButton];
        _decompressionLabel = [[UILabel alloc] initWithFrame:CGRectMake(kScreenWidth / 3 + 50, kScreenWidth / 3 + 40, kScreenWidth / 3, kScreenWidth / 3)];
        _decompressionLabel.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:_decompressionLabel];

        
        
        _helplessButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _helplessButton.frame = CGRectMake(kScreenWidth / 3 * 2, kScreenWidth / 3, kScreenWidth / 3, kScreenWidth / 3);
        [self.contentView addSubview:_helplessButton];
        _helpLessLabel = [[UILabel alloc] initWithFrame:CGRectMake(kScreenWidth / 3 * 2 + 50, kScreenWidth / 3 + 40, kScreenWidth / 3, kScreenWidth / 3)];
        _helpLessLabel.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:_helpLessLabel];

        
        
        _funButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _funButton.frame = CGRectMake(0, kScreenWidth / 3 * 2, kScreenWidth / 3, kScreenWidth / 3);
        [self.contentView addSubview:_funButton];
        _funLabel = [[UILabel alloc] initWithFrame:CGRectMake(50, kScreenWidth / 3 * 2 + 40, kScreenWidth / 3, kScreenWidth / 3)];
        _funLabel.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:_funLabel];
        
        
        _touchButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _touchButton.frame = CGRectMake(kScreenWidth / 3, kScreenWidth / 3 * 2, kScreenWidth / 3, kScreenWidth / 3);
        [self.contentView addSubview:_touchButton];
        _touchLabel = [[UILabel alloc] initWithFrame:CGRectMake(kScreenWidth / 3 + 50, kScreenWidth / 3 * 2 + 40, kScreenWidth / 3, kScreenWidth / 3)];
        _touchLabel.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:_touchLabel];
        
        
        _unseeingButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _unseeingButton.frame = CGRectMake(kScreenWidth / 3 * 2, kScreenWidth / 3 * 2, kScreenWidth / 3 , kScreenWidth / 3);
        [self.contentView addSubview:_unseeingButton];
        _unseeingLabel = [[UILabel alloc] initWithFrame:CGRectMake(kScreenWidth / 3 * 2 + 50, kScreenWidth / 3 * 2 + 40, kScreenWidth / 3 , kScreenWidth / 3)];
        _unseeingLabel.font = [UIFont systemFontOfSize:13];
        [self.contentView addSubview:_unseeingLabel];
    }
    return self;
}




@end
